package com.zzp.service.impl;

import com.zzp.mapper.TbBrandMapper;
import com.zzp.pojo.TbBrand;
import com.zzp.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private TbBrandMapper brandMapper;

    @Override
    public List<TbBrand> selectBrandByCategoryId(String categoryId) {
        return brandMapper.selectBrand(categoryId);
    }

    @Override
    public TbBrand selectBandId(String BandId) {
        return brandMapper.selectById(BandId);
    }


}
